Global Index
HTML5 JS API Index > DOM Tutorials & Specs

EventTarget

Extended by Node, Window, EventSource, WebSocket, MessagePort, BroadcastChannel, AudioTrackList, VideoTrackList, MediaController, TextTrackList, TextTrack, TextTrackCue, ApplicationCache, WorkerGlobalScope, Worker, SharedWorker, FileReader, IDBRequest, IDBDatabase, IDBTransaction, SVGElementInstance, SVGElementInstance

EventTarget is an object to which an event is dispatched when something has occurred. Each EventTarget has an associated list of event listeners.

Operations
voidaddEventListener(DOMString type, EventListener? callback, optional boolean capture)
booleandispatchEvent(Event event)
voidremoveEventListener(DOMString type, EventListener? callback, optional boolean capture)
Referenced by
Eventtarget
RelatedEventrelatedTarget
RelatedEventInitrelatedTarget